package edu.gdkm.mapper;

import edu.gdkm.controller.request.BaseRequest;
import edu.gdkm.entity.Book;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BookMapper {
    List<Book> list();

    List<Book> listByCondition(BaseRequest baseRequest);

    void save(Book obj);

    Book getById(Integer id);


    void updateById(Book book);

    void deleteById(Integer id);


}
